[HttpPost]
public void CreateMemo(CreateMemoRequest model)
{
factory.AddMemo(model.userID, model.content);
}
public class CreateMemoRequest
{
public int userID { get; set; }
public string content { get; set; }
}
public int AddMemo(int UserID, string content)
{
string msg = "";
bool flag = new Common_Core.Note.Note().AddNewItem(UserID.ToString(), content, ref msg);
if (flag)
{
return (int)provider.Query
}
return -1;
}