ActionResponse(ActionResponseType type) { Result = type; switch(type) { case ActionResponseType.Succeed: Message = "Succeed"; break; case ActionResponseType.Failed : Message = "Failed"; break; default : Message = "Not defined"; break; } }
ActionResponse(ActionResponseType type) { Result = type; switch (type) { case ActionResponseType.Succeed: Message = "Succeed"; break; case ActionResponseType.Failed: Message = "Failed"; break; default: Message = "Not defined"; break; } }
public ActionResponseBuilder <T> SetStatus(ActionResponseType status) { _actionResponse.Flag = status; return(this); }